//
//  UserJSONModel.swift
//  DianShangWen
//
//  Created by 周文轩 on 15/4/3.
//  Copyright (c) 2015年 &#21608;&#25991;&#36713;. All rights reserved.
//

import Foundation
import Argo
import Runes

extension UserLogin: Argo.JSONDecodable {
    
    static func create(successcount: Int)(msg: String) -> UserLogin {
        return UserLogin(successcount: successcount, msg: msg)
    }
    
    static func decode(j: JSONValue) -> UserLogin? {
        return UserLogin.create
            <^> j <| "successcount"
            <*> j <| "msg"
    }
}






